package com.lollipop.shiro.mapper;

import com.lollipop.shiro.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * @Author: J.K
 * @Date: 2021-06-02 14:51
 * @Description:
 */
@Component
@Mapper
public interface UserMapper {
    /**
     * 根据用户名查询用户信息
     *
     * @param username
     * @return
     */
    User findByUsername(@Param("username") String username);
}
